datasets=("topic" "repost" "twitter")
time_window=(1 0.5)
wd=5e-5
lr=5e-3
for ds in ${datasets[*]};
do
  for tw in ${time_window[*]};
  do
    logfile="logs/${ds}${tw}.txt"
    echo "start at:" $START_TIME | tee ${logfile}
    START_TIME=`date +%s`
    python run.py --gpus 1 --dataset_name ${ds} --observation ${tw} --learning_rate ${lr} --weight_decay ${wd} | tee -a ${logfile} 2>&1
    END_TIME=`date +%s`
    EXECUTING_TIME=`expr $END_TIME - $START_TIME`
    echo "end at:" $END_TIME | tee -a ${logfile}
    echo "Node2Vec ${ds}${tw} timecost:" $EXECUTING_TIME | tee -a ${logfile}
  done
done

